
<?php include $this->getLayoutFile('block_top_messages'); ?>

<div class="block">
    <a href="<?php echo $this->url->get('adminSiteClient','new',$user); ?>" class="button1">建立</a>
</div>

<table class="table1" cellspacing="0">
    <tr> 
        <th class="nobg"> id </th> 
        <th> name 姓名   </th> 
        <th> email       </th> 
        <th> 管理        </th> 
    </tr>
    <?php
        foreach( $clients as $client ) {
            echo '<tr>';
            echo '    <th>'. $client->getId() .'</td>';
            echo '    <td><a href="'. $this->url->get('adminSiteClient','edit',$client) .'">'. $client->getName() .'</a></td>';
            echo '    <td>'. $client->getEmail() .'</td>';
            echo '    <td><a href="'. $this->url->get('adminSiteClient','listDependant',$client) .'">客戶眷屬</a></td>';
            echo '</tr>';
        }
    ?>
</table> 

<?php  if( $this->pageLimit ) { echo '<div>'. $this->pageLimit->render() .'</div>'; }  ?>
